const { merge } = require("webpack-merge")
const path = require("path")
let base = require("./webpack.config.base.js")
module.exports = merge(base, {
  mode: 'development',
  devtool: "source-map",
  devServer: {
    // host: "192.160.0.94",
    // useLocalIp: true,
    port: 3000, // 端口号
    open: true // 自动打开浏览器
  },
  watch: true,
  watchOptions: {
    poll: 1000,//多少秒问一次
    aggregateTimeout: 500,//防抖
    ignored: /node_modules/   //不需要监控
  },
  plugins: [
  ],
  entry: "./src/main.js",
  output: { path: path.join(__dirname, "bundle"), filename: "[name].js" },
})